package com.zuikaku.shardingsql.util;

import java.io.File;

public class FileUtil {
    public static boolean createDir(String outFilePath) {
       return new File(outFilePath).mkdir();
    }


    /**
     * 获得当前应用的resource目录
     * @return
     */
    public static String getClassPath() {
        try {
            return Thread.currentThread().getContextClassLoader().getResource("").getPath();
        } catch (Exception e) {
            //命令行中获取不到路径
            e.printStackTrace();
        }
        return null;
    }
}
